package com.zrfintech.common.util;

import org.slf4j.MDC;

public class MDCUtils {
    public static final String LOG_ID = "logId";

    public static void setLogId(String logId) {
        put(LOG_ID, logId);
    }
    
    public static void removeLogId() {
        remove(LOG_ID);
    }

    public static void put(String key, String value) {
        MDC.put(key, value);
    }

    public static void remove(String key) {
        MDC.remove(key);
    }

    public static void clear() {
        MDC.clear();
    }
}
